<table class="classify-table" border="0" cellspacing="0" cellpadding="0">
  <tbody>
    <tr>
      <td *ngFor="let h of header.slice(1); let i = index; trackBy: trackByHeader" [attr.colspan]="i === 0 ? 2 : ''">
        {{h.label || '--'}}
      </td>
    </tr>
  </tbody>
  <tbody *ngFor="let sdata of data; let i = index; trackBy: trackByGroup">
    <tr *ngFor="let d of sdata.data; let j = index; trackBy: trackByBusiness" >
      <td [attr.rowspan]="sdata.data.length" 
        *ngIf="j === 0" 
        (click)="toggleChart(data[i].name)" 
        [ngClass]="{
          cursorType: true,
          tdActived: tdActived(data[i].name)
        }">
        {{data[i].name}}
      </td>
      <td *ngFor="let h of header.slice(1); trackBy: trackByHeader">
        {{
          h.format
          ? (d[h.key] || '--' | optimizeUnitF10)
          : d[h.key] || '--'
        }}
      </td>
    </tr>
  </tbody>
</table>